package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @author ZY.Wang
 * @since 2023/7/10
 */
@Data
@Table("shequ.sqfw_verify_code")
@Comment("验证码")
@ApiModel(description = "验证码")
public class Sqfw_verifyCode {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("code")
    @Comment("验证码")
    @ApiModelProperty(description = "验证码")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String code;

    @Column("phone_no")
    @Comment("电话号码")
    @ApiModelProperty(description = "电话号码")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String phoneNo;

    @Column("used_flag")
    @Comment("使用标志")
    @ApiModelProperty(description = "使用标志")
    @ColDefine(type = ColType.BOOLEAN, width = 1)
    private Boolean usedFlag;

    @Column("create_date")
    @Comment("创建时间")
    @ApiModelProperty(description = "创建时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date createDate;

    @Column("consume_time")
    @Comment("消费时间")
    @ApiModelProperty(description = "消费时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date consumeTime;

    @Column("expire_time")
    @Comment("过期时间")
    @ApiModelProperty(description = "过期时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 6)
    private Date expireTime;

    @Column("ip_address")
    @Comment("ip地址")
    @ApiModelProperty(description = "ip地址")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String ipAddress;

    @Column("business_type")
    @Comment("业务类型")
    @ApiModelProperty(description = "业务类型")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String businessType;

    @Column("business_id")
    @Comment("业务id")
    @ApiModelProperty(description = "业务id")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String businessId;

    @Column("remark")
    @Comment("备注")
    @ApiModelProperty(description = "备注")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String remark;

    @Column("send_channel")
    @Comment("发送渠道")
    @ApiModelProperty(description = "发送渠道")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String sendChannel;

    @Column("send_success_flag")
    @Comment("发送渠道")
    @ApiModelProperty(description = "发送渠道")
    @ColDefine(type = ColType.BOOLEAN, width = 1)
    private Boolean sendSuccessFlag;

    @Column("create_by")
    @Comment("添加人id")
    @ApiModelProperty(description = "添加人")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String createBy;


}
